package cn.xhjava.crm.workbench.controller.chat;

import cn.xhjava.crm.workbench.domain.DateDataMapVO;
import cn.xhjava.crm.workbench.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class ActivityChartController {

    @Autowired
    private ActivityService activityService;

    @RequestMapping("/workbench/chart/activity/index")
    public String activeIndex() {
        //跳转页面
        return "workbench/chart/activity/index";

    }


    @RequestMapping("/workbench/chart/activity/queryCountGroupByCreateTime")
    public @ResponseBody
    Object queryActivityCountGroupByCreateTime() throws Exception {
        DateDataMapVO dateDataMapVO = activityService.queryActivityCountGroupByCreateTime();
        return dateDataMapVO;
    }
}
